/*
 * @Author: huangyingli
 * @Date: 2023-02-08 10:22:14
 * @LastEditors: huangyingli
 * @LastEditTime: 2023-02-22 17:49:47
 * @Description:
 */
import axios from './index';

import { URLS } from '../config/urls';

export function loginRequest(config) {
  return axios({
    method: 'post',
    url: URLS.COMMON.LOGIN,
    ...config,
  });
}

export function isLoginRequest(config) {
  return axios({
    method: 'get',
    url: URLS.COMMON.IS_LOGIN,
    withCredentials: true,
    ...config,
  });
}
